package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.entity.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 51585
 * @description 针对表【comment】的数据库操作Mapper
 * @createDate 2022-10-21 15:28:12
 * @Entity com.itheima.entity.Comment
 */
@Mapper
public interface CommentMapper extends BaseMapper<Comment> {
    /**
     * 查找子评论
     * @param messageId 新闻id
     * @return 评论集合
     */
    List<Comment> listComment(@Param("messageId") Integer messageId);
}




